package com.zhulanhua.blogs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhulanhua.blogs.domain.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * 文章表  sql
 * */
@Mapper
public interface ArticleDao extends BaseMapper<Article> {
    @Update("update article set browse = browse + 1 where article_id = #{articleId}")
    void appendBrowse(Article article);
}
